package CtrLayer;
import ModelLayer.*;


/**
 * 
 * 
 */
public class StudentCtr
{
    /**
     * an object of the studenContain is required, before we can add a student
     */
    private StudentContainer studentContainer;

    /**
     * constructor
     */
    public StudentCtr()
    {
        // initialisering 
        studentContainer = new StudentContainer();
    }

    /**
     * here you have to code the method create student, as it is on the interactiondiagram
     * 
     */
    public void createStudent(int id, String name, String address, String eMail)
    {
        Student s = new Student(id, name, address, eMail);
        
        studentContainer.addStudent(s);
        
    }
    public Student findStudent(int id)
    {
        Student s= studentContainer.findStudent(id);
        return s;
        
    }
}
